package org.example.bighomework.Student;
import org.springframework.data.domain.Page;
import java.util.List;
//业务层，接口
public interface StudentService {
    //获取所有信息
    List<Student> getAllStudent();
    //保存信息/更新信息
    void saveStudent(Student student);
    //根据id查找
    Student getStudentById(String id);
    //删除
    void deleteStudentById(String id);
    //根据name查找
    List<Student> findByName(String name);
    //保存信息/更新信息
    void updateStudent(Student student);
    //分页
    Page<Student> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);
}
